package com.example.administrator.text.wxapi;

import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.widget.EditText;
import android.widget.TextView;

import com.example.administrator.text.R;

import app.BaseActivity;
import butterknife.Bind;
import butterknife.ButterKnife;
import util.LogUtil;

public class TextActivity extends BaseActivity {

    private String mString;
    byte[] byteString;
    @Bind(R.id.gongmi)     TextView mGongmi;
    @Bind(R.id.shimi)      TextView mShimi;
    @Bind(R.id.jiami_qian) TextView mJiamiQian;
    @Bind(R.id.jiami_hou) TextView mJiamiHou;
    @Bind(R.id.edit_text) EditText mEditText;
    @Bind(R.id.text_gong) TextView mTextGong;
    @Bind(R.id.text_shi) TextView mTextShi;
    @Bind(R.id.text_jia) TextView mTextJia;
    @Bind(R.id.text_jie) TextView mTextJie;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_text);
        ButterKnife.bind(this);

        mEditText.addTextChangedListener(new TextWatcher() {
            @Override
            public void beforeTextChanged(CharSequence s, int start, int count, int after) {

            }

            @Override
            public void onTextChanged(CharSequence s, int start, int before, int count) {
                mString = s.toString();
                LogUtil.eE("Key","解密后"+mString);
            }

            @Override
            public void afterTextChanged(Editable s) {

            }
        });

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

}
